/*
 * @Author: 小巴 2393953821@qq.com
 * @Date: 2024-06-05 09:05:54
 * @LastEditors: 小巴 2393953821@qq.com
 * @LastEditTime: 2024-06-05 09:39:15
 * @FilePath: \drgs_web\src\api\home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 登录日志
export function loginlog(data,flag) {
  return request({
    url: `pc/login-log/page?flag=${flag.data}`,
    method: 'post',
    data
  })
}

// 分页升级记录
export function upgradepage(data,flag) {
  return request({
    url: `pc/upgrade/page?flag=${flag.data}`,
    method: 'post',
    data
  })
}

// 当前系统版本
export function version(flag) {
  return request({
    url: `pc/upgrade/version?flag=${flag.data}`,
    method: 'get'
  })
}

// 开始升级
export function upgradesend(data,flag) {
  return request({
    url: `pc/upgrade/send/page?flag=${flag.data}`,
    method: 'post',
    data
  })
}

// 上传文件

export function upload(data,flag) {
  return request({
    url: `pc/home/upload?flag=${flag.data}`,
    method: 'post',
    data
  })
}
